package com.sk.bilibili.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.sk.bilibili.bean.interfaces.DiscussAble;
import com.sk.bilibili.bean.interfaces.ForwardAble;
import com.sk.bilibili.bean.interfaces.PraiseAble;
import com.sk.bilibili.other.ExtraMap;
import com.sk.bilibili.typeHandler.StringArrayTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;
/**
* @author 邵康
* @date 2021/11/24 19:22
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Note implements ForwardAble, DiscussAble, PraiseAble {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer memberId;
    private String content;
    @TableField(el = "urls,typeHandler=com.sk.bilibili.typeHandler.StringArrayTypeHandler")
    private String[] urls;
    @TableField(exist = false)
    private MultipartFile[] images;
    @TableField(fill = FieldFill.INSERT)
    private Long createDate;
    private Integer forwardNum;
    private Integer discussNum;
    private Integer praiseNum;
    @TableField(exist = false)
    private ExtraMap extra=new ExtraMap();

}
